package cn.lbd.api.designMode.strategy;

import cn.lbd.api.designMode.strategy.factory.PriceContext;

import java.math.BigDecimal;

public class TestDemo {
    public static void main(String[] args) throws Exception {
        PriceContext priceContext = new PriceContext();
        System.out.println(priceContext.getPrice(new BigDecimal(500)));
        System.out.println(priceContext.getPrice(new BigDecimal(30000)));
        System.out.println(priceContext.getPrice(new BigDecimal(15000)));
    }
}
